package com.zm.rpc.protocol.enums;

public enum HeartBeatType {

    
    UNKNOW((byte)0,"UNKNOW"),
    PING((byte)1,"PING"),
    PONG((byte)2,"PONG");


    byte type;
    String desc;

    HeartBeatType(byte aType, String aDesc){
        type = aType;
        desc = aDesc;
    }

    public byte code(){
        return type;
    }

    public String desc(){
        return desc;
    }
}
